package libnetdb.dm.assoc.base;

/**
 * <code>Litemset</code> is an abbreviation for large itemset.
 * It is different from the <code>Itemset</code> in that it
 * contains the information of how many times this itemset
 * apears in the transaction databases.
 *
 * @author Cheng-Ru Lin
 * @version 1.0
 */
public class Litemset extends Itemset{

    /**
     * The times of this large itmeset appears in the transaction
     * databases.
     */
    public int count;

    /**
     * Constructs a new allocated large itemset.
     *
     * @param itemset the itemset part of the constructed large
     *   itemset
     * @param count the times of this large itemset appears in
     * the transaction database
     */
    public Litemset(Itemset itemset, int count) {
        super(itemset.ids);
        this.count = count;
    }

    /**
     * Constructs a new allocated large itemset.
     *
     * @param ids the itemset part of the constructed large itemset
     * @param count the times of this large itemset appears in the
     *   transaction database
     */
    public Litemset(int ids[], int count) {
        super(ids);
        this.count = count;
    }
}